import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/home/Home.vue'
import Chart from '../views/home/Chart.vue'
const AppCode=()=>import('../components/AppCode.vue') 

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    children:[
      {
        path:'',
        name:'Chart',
        component:Chart
      },
      {
        path:'appCode',
        name:'AppCode',
        component:AppCode
      }
    ]
  }
]

const router = new VueRouter({
  routes,
  mode:'history'
})

export default router
